package com.dayuanit.dy15.ebook.ebookadminbackoffice.config;

import org.apache.shiro.authz.UnauthorizedException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class EbookExceptionHandler {

    @ExceptionHandler(UnauthorizedException.class)
    public String processUnauthorizedException(UnauthorizedException ue) {
        return "无权操作";
    }
}
